<?php 
	include('connection.php');
	
	$query1 = 'SELECT * FROM `filme` ORDER BY `Nome` LIMIT 0, 5 ';
	$result = mysql_query($query1);
?>
    <center>
    	<h3>Destaques</h3>
        <br />
<?php
	while ($row = mysql_fetch_array($result)) {
		echo "<p><a href='http://www.imdb.com/title/tt".$row['IMDB']."/'>".$row['Nome']."</a></p>";
	}
	
?>
    <br />
	<hr width="85%" color="#225" />
    <br />
	<h3>G&ecirc;neros</h3>
    <br />
<?php
	
	$query2 = 'SELECT * FROM `filme_genero`';
	$result2 = mysql_query($query2);
	
	while ($row = mysql_fetch_array($result2)) {
		echo "<p><a href='listar_filmes.php?q=".$row['Genero']."'>".$row['Genero']."</a></p>";
	}
	
	mysql_close($conn);
?>
	</center>